package Program;

import java.util.Random;
import java.util.Scanner;

public class Case2 {
    //生成验证码
    /*
    public static void main(String[] args) {
        Random r = new Random();
        int n = 0;
        System.out.println("请输入生成随机数的位数");
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        String code = "";
        for(int i =0; i < n; i++)
        {
            //0 表示数字 1 表示大写字符 2 表示小写字符
            int num = r.nextInt(3);
            switch (num)
            {
                case 0:
                    code += r.nextInt(10);
                    break;
                case 1:
                    char ch = (char) (r.nextInt(26) + 65);
                    code += ch;
                    break;
                case 2:
                    char ch2 = (char) (r.nextInt(26) + 97);
                    code += ch2;
                    break;
            }
        }
        System.out.println(code);

    }
     */
}
